package cn.tedu.submarine;

import javax.swing.*;

public class Tor extends SeaObject{
    public Tor(int x, int y){
        super(10,20,x,y,2);
    }
    public void move(){
        y-=speed;
    }
    public ImageIcon getImage(){
        return Images.tor;
    }
    public boolean isOutOfBounds(){
        return this.y<=150-this.height;
    }
}
